package com.plter.minios.mgrs
{
	import com.plter.minios.app.MiniOS;
	
	import flash.display.Stage;
	import flash.events.Event;
	
	/**
	 * 场景管理员
	 */
	public class StageMgr extends Manager
	{
		private static var __thisClass:StageMgr;
		
		public static const STAGE_RESIZE:String="stageResize";
		
		public static function get stageMgr():StageMgr{
			if(__thisClass==null){
				__thisClass=new StageMgr;
			}
			return __thisClass;
		}
		
		private var _stage:Stage;
		
		public function StageMgr()
		{
			_stage=MiniOS.appMain.stage;
		}
		
		/**
		 * 添加场景尺寸变化时的处理器
		 */
		public function addStageResizeHandler(handler:Function):void{
			addListener(STAGE_RESIZE,handler);
		}
		
		public function removeStageResizeHandler(handler:Function):void{
			removeListener(STAGE_RESIZE,handler);
		}
		
		public function hasStageResizeHandler(handler:Function):void{
			hasListener(STAGE_RESIZE,handler);
		}
		
	}
}